﻿using System;
using System.Data.Common;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using Pub.Class;
using GTS.MiniBox.Helper;
using GTS.MiniBox.Entity;
using System.Web;

namespace GTS.MiniBox.Page {
    /// <summary>
    /// 下载词库
    /// </summary>
    public class DownloadWord : System.Web.UI.Page {
        /// <summary>
        /// Page_Load
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e) {
            HttpContext.Current.Response.ContentType = "application/octet-stream";
            HttpContext.Current.Response.AddHeader("SPECIAL", "GTSBOX");

            DataTable dt = Data.Pool("BoxMTK").GetDataTable("select FileBinary from KeyWordInfo");
            if (dt.Rows.Count > 0)
                SiteConfig.ResponseGameInfo(HttpContext.Current.Request, HttpContext.Current.Response, "ciku.txt", (Byte[])dt.Rows[0][0]);
        }
    }
}
